package com.zoran.study.spring.service.impl;


import com.zoran.study.spring.aop.MyAroud;
import com.zoran.study.spring.service.UserService;
import org.springframework.stereotype.Service;

/**
 * UserServiceImpl
 *
 * @author zouxm
 * @date 2018/1/7
 */
@Service
public class UserServiceImpl implements UserService {

    /*@PostConstruct
    public void init() {
        System.out.println("UserService Init...");
    }*/

    @MyAroud
    @Override
    public void showMsg() {
        System.out.println("user service");
    }

    @Override
    public  int eval(int a, int b) {
        return a / b;
    }

    @MyAroud
    @Override
    public String calc(int a, int b) {
        return String.valueOf(a + b);
    }

    public static void say(){
        System.out.println("hello");
    }

}
